package com.mzd.multipledatasources3;

import com.mzd.multipledatasources3.datasource.Datasource1;
import com.mzd.multipledatasources3.datasource.Datasource2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author Administrator
 */
@SpringBootApplication
// @EnableConfigurationProperties注解使@ConfigurationProperties注解生效
@EnableConfigurationProperties(value = {Datasource1.class, Datasource2.class})
public class MultipleDataSourcesApplication3 {

    public static void main(String[] args) {
        SpringApplication.run(MultipleDataSourcesApplication3.class, args);
    }
}
